package com.xuecheng.api.cms;

import com.xuecheng.framework.domain.cms.CmsConfig;
import com.xuecheng.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;


@Api(value="cms配置管理接口",description = "cms配置管理接口，提供配置的增、删、改、查")
public interface CmsConfigControllerApi {

/*    @ApiOperation("分页查询配置列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name="Config",value = "页码",required=true,paramType="path",dataType="int"),
            @ApiImplicitParam(name="size",value = "每页记录数",required=true,paramType="path",dataType="int")
    })
    public QueryResponseResult findList(int Config, int size, CmsConfig cmsConfig);*/

    @ApiOperation("添加配置接口")
    public ResponseResult<CmsConfig> add(CmsConfig cmsConfig);

    @ApiOperation("查询单个配置接口")
    public ResponseResult<CmsConfig> findById(String id);

    @ApiOperation("修改配置接口")
    public ResponseResult<CmsConfig> edit(CmsConfig cmsConfig);

    @ApiOperation("通过ID删除配置")
    public ResponseResult delete(String id);

}